message("compile tinyxml2")
 
set(INSTALL_HEAD_FILES tinyxml2.h)

ADD_LIBRARY(tinyxml2 SHARED   tinyxml2.cpp)

install(TARGETS tinyxml2
        EXPORT MyLibTargets 
        LIBRARY DESTINATION lib  # 动态库安装路径
        ARCHIVE DESTINATION lib  # 静态库安装路径
        RUNTIME DESTINATION bin  # 可执行文件安装路径
        PUBLIC_HEADER DESTINATION include  # 头文件安装路径
        )

install(FILES ${INSTALL_HEAD_FILES} DESTINATION  ${CMAKE_INSTALL_PREFIX}/include)



